package cn.tulingxueyuan;

import cn.tulingxueyuan.beans.UserServiceImpl;
import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;

/***
 * @Author qiyang
 * @Slogan 致敬大师，致敬未来的你
 * 测试 Spring 源码本地编译是否正常
 */
@Configuration
@ComponentScan("cn.tulingxueyuan")
public class MainStat {

	public static void main(String[] args) {
		ApplicationContext context = new AnnotationConfigApplicationContext(MainStat.class);
		UserServiceImpl bean = context.getBean(UserServiceImpl.class);
		bean.sayHi();
	}

}
